<template>
    <div>
        <bread-crumb></bread-crumb>
        <div class="box">
        <h1>学生信息详情</h1>
        <div class="tent">
            <div class="text">
                <label>学号：<input type="text" v-model="studetail.stu_id"></label><br>
                <label>姓名：<input type="text" v-model="studetail.stu_name" /></label><br />
                <label>性别：<input type="text" v-model="studetail.stu_sex" /></label><br />
                <label>籍贯<input type="text" v-model="studetail.stu_jg" /></label><br />
                <label>出生日期：<input type="text" v-model="studetail.stu_date" /></label><br />
                <label>爱好：<input type="text" v-model="studetail.stu_hobby" /></label><br />
                <label>男或女朋友：<input type="text" v-model="studetail.stu_gbf" /></label><br>
                <label>头像：<img :src="studetail.stu_head_img" alt="" width="100" height="100"></label><br>
            </div>
        </div>
    </div>
    </div>
    
</template>

<script>
    export default {
        data() {
            return {
                studetail: {}
            }
        },
        mounted(){
            this.studetail = JSON.parse(this.$route.query.stuInfoDetail);
            this.studetail.stu_date = this.studetail.stu_date.slice(0,10)
        }
    }
</script>

<style lang="scss" scoped>
.box {
    display: flex;
    flex-direction: column;
    align-items: center;

    .tent {
        width: 600px;
        height: 500px;
        display: flex;
        justify-content: center;
        align-items: center;

        .text {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;

            div {
                margin-bottom: 20px;
            }
        }
    }
}
</style>